#include <iostream>
#include <functional>
#include <string>
using namespace std;

class Test
{
public:
    int Function(int num)
    {
        cout << num << endl;
        return num;
    }

};

int main()
{
    Test test;
    std::function<int(int)> bind = std::bind(&Test::Function, &test, std::placeholders::_1);
    auto res = bind(22);
    cout << res << endl;
    return 0;
}
